package com.aabte.design.principle.compositionaggregation;

import lombok.Data;

@Data
public class ProductionDao {

    private DBConnection dbConnection;

    public void addProduct() {
        String conn = dbConnection.getConnection();
        System.out.println("使用" + conn + "增加产品");
    }
}
